package com.example.designpatterns.Interpreter;

/**
 * 数值解释器
 */
public class NumExpression implements Expression {

    private int value;

    public NumExpression(int value) {
        this.value = value;
    }

    @Override
    public int interpret() {
        return this.value;
    }

}